package org.springblade.modules.sga.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.core.tool.api.R;
import org.springblade.modules.enterprise.vo.EnterpriseVO;
import org.springblade.modules.policy.entity.PolicyDraw;
import org.springblade.modules.sga.mapper.SgaPolicyDrawMapper;
import org.springblade.modules.sga.service.ISgaPolicyDrawService;
import org.springblade.modules.sga.vo.SgaPolicyDrawVO;
import org.springblade.modules.system.entity.DictItem;
import org.springframework.stereotype.Service;

import java.lang.reflect.Field;
import java.util.*;

@Service
public class SgaPolicyDrawServiceImpl extends BaseServiceImpl<SgaPolicyDrawMapper, PolicyDraw> implements ISgaPolicyDrawService {

	@Override
	public SgaPolicyDrawVO getById(Long id) {
		return baseMapper.getById(id);
	}

	@Override
	public IPage<SgaPolicyDrawVO> selectPolicyDrawPage(IPage<SgaPolicyDrawVO> page, Integer status, Integer isDeclareMatter, String enterpriseNature, String suitLevel, String enterpriseScale, String enterpriseSpecial, Character industryType, String name,String policys) {

		return page.setRecords(baseMapper.selectPolicyDrawPage(status, isDeclareMatter, enterpriseNature, suitLevel, enterpriseScale, enterpriseSpecial, industryType, name,policys, page));
	}

	@Override
	public Integer countPolicyDraw() {
		return baseMapper.countPolicyDraw();
	}

}
